home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-09-13 | 1.6 KB | 48 lines |
- TOP=..
-
- include $(TOP)/make.cfg
-
- FILES = adddosentry addprocess allocdosobject assignlock attemptlockdoslist \
- cli close createnewproc currentdir datetostr delay duplock exall \
- examine fgetc findarg finddosentry flush fputc fputs freeargs \
- freedosentry freedosobject getargstr input ioerr isinteractive \
- loadseg lockdoslist makedosentry maxcli namefromlock open \
- openfromlock output printfault putstr read readargs readitem \
- remdosentry runcommand seek selectinput selectoutput setioerr \
- setowner strtolong ungetc unloadseg unlockdoslist vfprintf \
- vprintf write filepart addbuffers changemode createdir deletefile \
- exallend isfilesystem lock matchpattern matchpatternnocase \
- parsepattern parsepatternnocase setcomment setfiledate setfilesize \
- setprotection
-
- all: setup $(OSGENDIR)/dos_init.o $(OSGENDIR)/dos_functable.o \
- $(foreach f,$(FILES),$(OSGENDIR)/$(f).o) \
- $(OSGENDIR)/lddemon.o \
- $(OSGENDIR)/errorlist.o \
- $(OSGENDIR)/loadseg_elf.o \
- $(OSGENDIR)/doname.o \
-
- setup :
- @if [ ! -d $(OSGENDIR) ]; then $(MKDIR) $(OSGENDIR) ; fi
-
- clean:
- $(RM) $(OSGENDIR) *.err $(LIBDIR)/libdos.a
-
- $(OSGENDIR)/%.o: %.c
- $(CC) $(CFLAGS) $< -c -o $@ 2>&1|tee $*.err
- if test ! -s $*.err; then rm $*.err; fi
-
- dos_functable.c : $(foreach f,$(FILES),$(f).c) \
- $(TOP)/scripts/makefunctable.awk
- gawk -f $(TOP)/scripts/makefunctable.awk \
- --assign lib=Dos \
- $(foreach f,$(FILES),$(f).c)
-
- $(OSGENDIR)/%.d: %.c
- @if [ ! -d $(OSGENDIR) ]; then $(MKDIR) $(OSGENDIR) ; fi
- @$(RM) $@
- @touch $@
- $(MKDEPEND) -f$@ -p$(OSGENDIR)/ -- $(CFLAGS) -- $^
-
- include $(foreach f,$(FILES),$(OSGENDIR)/$(f).d)
-